package org.edu.modules.sxjy.utils;

import java.io.Serializable;
import org.edu.common.api.vo.Result;

public class PageResponseResult
        implements Serializable
{
    private Integer pageNo;
    private Integer totalPage;
    private Integer total;
    private Result<Object> result;

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $pageNo = getPageNo();result = result * 59 + ($pageNo == null ? 43 : $pageNo.hashCode());Object $totalPage = getTotalPage();result = result * 59 + ($totalPage == null ? 43 : $totalPage.hashCode());Object $total = getTotal();result = result * 59 + ($total == null ? 43 : $total.hashCode());Object $result = getResult();result = result * 59 + ($result == null ? 43 : $result.hashCode());return result;
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof PageResponseResult;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof PageResponseResult)) {
            return false;
        }
        PageResponseResult other = (PageResponseResult)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$pageNo = getPageNo();Object other$pageNo = other.getPageNo();
        if (this$pageNo == null ? other$pageNo != null : !this$pageNo.equals(other$pageNo)) {
            return false;
        }
        Object this$totalPage = getTotalPage();Object other$totalPage = other.getTotalPage();
        if (this$totalPage == null ? other$totalPage != null : !this$totalPage.equals(other$totalPage)) {
            return false;
        }
        Object this$total = getTotal();Object other$total = other.getTotal();
        if (this$total == null ? other$total != null : !this$total.equals(other$total)) {
            return false;
        }
        Object this$result = getResult();Object other$result = other.getResult();return this$result == null ? other$result == null : this$result.equals(other$result);
    }

    public String toString()
    {
        return "PageResponseResult(pageNo=" + getPageNo() + ", totalPage=" + getTotalPage() + ", total=" + getTotal() + ", result=" + getResult() + ")";
    }

    public PageResponseResult(Integer pageNo, int totalPage, int total, Result<Object> result)
    {
        this.pageNo = pageNo;
        this.totalPage = Integer.valueOf(totalPage);
        this.total = Integer.valueOf(total);
        this.result = result;
    }

    public Integer getPageNo()
    {
        return this.pageNo;
    }

    public void setPageNo(Integer pageNo)
    {
        this.pageNo = pageNo;
    }

    public Integer getTotalPage()
    {
        return this.totalPage;
    }

    public void setTotalPage(Integer totalPage)
    {
        this.totalPage = totalPage;
    }

    public Integer getTotal()
    {
        return this.total;
    }

    public void setTotal(Integer total)
    {
        this.total = total;
    }

    public Result<Object> getResult()
    {
        return this.result;
    }

    public void setResult(Result<Object> result)
    {
        this.result = result;
    }
}
